package com.example.customview.loadingview

import com.alibaba.android.arouter.facade.annotation.Route
import com.android.baselibrary.base.BaseFragment
import com.example.customview.R
import com.example.customview.arouter.CustomArouter
import com.example.customview.databinding.FragmentLoadingViewBinding
@Route(path = CustomArouter.CUSTOM_LOADING_VIEW)
class LoadingViewFragment:BaseFragment<FragmentLoadingViewBinding>() {
    override fun getLayoutID() = R.layout.fragment_loading_view

    override fun initView() {
        mBinding.loadingView.setTimePeriod(100)
        mBinding.loadingView.start()
    }
    override fun onDestroy() {
        super.onDestroy()
        mBinding.loadingView.stop()
    }
}